First, the escape character is used to configure the Xml file in Mybatis. Strictly speaking, it is invalid to have only the characters "& lt;" and "& amp;" in XML. Ellipsis, quotation marks, and greater than signs are valid, but it is a good habit
Recently, using MyBatis, and then using less than or equal, directly using
SUM (case when P.pool_year
The conjecture may have been due to special characters, and the escape character was replaced with the following:
SUM (case when
Because this is an XML file that does not allow characters like ">" to appearUse the escape character to replace > and XML escape character
Field
symbols
Description
Less than sign
Because this is an XML file that does not allow characters like ">" to appearUse the escape character to replace > and XML escape character
Field
symbols
Description
Less than sign
When writing code today, because the business needs to be used in mybatis, it is bigger than the number, less than the number, so it is directly used in SQL.SELECT * FROM test WHERE 1 = 1 AND start_date = CURRENT_DATEHowever, an error is reported
Xml
HTML
the escape character in
HTML, >,& and so on have special meaning, (the first two characters used for link check,& for escape), cannot be used directly. When you use these three characters, you should use their escape sequences, as follows:
should be used in SQL for business requirements >=,
The first: replace > and
SELECT * FROM Test WHERE 1 = 1 and start_date
Attachment: XML escape characters
&nbs P
Why to use an escape string.
,& in HTML has a special meaning ( for the link-sign,& for escape) and cannot be used directly. These symbols are not displayed in the pages we eventually see, so what if we want to display them in the Web page?
This
Level: Primary
Jane Fung (jcyfung@ca.ibm.com), VisualAge for Java support, IBM Canada
This introductory article of July 01, 2001 describes how to create XML document type definition (DTD) and well-formed XML files that can be validated by the XML
There are several days did not update the blog, the previous period of time because of the school, need to fill the tuition to continue to study in the school, delayed a few days, these two days need to supplement the previous need to learn some of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.